Book Contents

Modulus (MOD or %)

Returns the remainder of one number divided by another. For example, the remainder of 13 divided by 5 is 3; so 13 % 5 = 3.

See also

Quick reference to operators